<template>
<div class="contain">
  <div class="loader-base" v-if="showLoad"><div class="loader-wrap"></div></div>
  <header-box :title="'我的加班申请明细'" :hasArrow="true"></header-box>
  <detail-user></detail-user>
  <detail-ctxOvertime @showLoadDetail="showLoadDetail"></detail-ctxOvertime>
  <progress-box @showLoadProgress="showLoadProgress"></progress-box>
</div>
</template>
<script>
import progressBox from "@/components/share/progress.vue";
import detailUser from "@/components/share/detailUser.vue";
import detailCtxOvertime from "@/components/share/detailCtxOvertime.vue";
export default {
  components:{
    progressBox,
    detailCtxOvertime,
    detailUser
  },
  data() {
    return {
      showLoadD:false,
      showLoadP:false,
      showLoad:false,
    };
  },
  watch:{
    showLoadD(newVal, oldVal){
      if(this.showLoadD == false && this.showLoadP == false){
        this.showLoad = false;
      } else {
        this.showLoad = true;
      }
    },
    showLoadP(newVal, oldVal){
      if(this.showLoadD == false && this.showLoadP == false){
        this.showLoad = false;
      } else {
        this.showLoad = true;
      }
    },
  },
  computed: {

  },
  created() {
    
  },
  methods: {
    showLoadDetail(val){
      this.showLoadD = val;
    },
    showLoadProgress(val){
      this.showLoadP = val;
    },
  }
};
</script>